package com.gxa.core.recycling.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 回收元
 * @author ：looker
 * @date ：Created in 2021/11/29 11:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "recycler")
@Entity   //orm对象关系映射
public class Recycler implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    @Column(name = "name")
    private String name;
    @Column(name = "phone")
    private String phone;
//    @JsonIgnore
    @Column(name = "pwd")
    private String pwd;
    //头像
    @Column(name = "img")
    private String img;

    @Column(name = "token")
    private String token;





}
